package top.wintp.offlinedataanalysis.common;

/**
 * description:
 * <p>
 *
 * @author: upuptop
 * <p>
 * qq: 337081267
 * <p>
 * CSDN:   http://blog.csdn.net/pyfysf
 * <p>
 * cnblogs:   http://www.cnblogs.com/upuptop
 * <p>
 * blog:   http://wintp.top
 * <p>
 * email:  pyfysf@163.com
 * <p>
 * time: 2019/08/2019/8/14
 * <p>
 */
public class ConstantValues {

    /**
     * 开发环境的tag salver
     */
    public static final int SALVER_ENV_TYPE = 1;
    /**
     * 开发环境的tag leader
     */
    public static final int LEADER_ENV_TYPE = 2;

    /**
     * 当前的开发环境
     */
    public static final int CURRENT_ENV_TYPE = LEADER_ENV_TYPE;

    /**
     * 一天的毫秒数
     */
    public static final int DAY_OF_MILLISECONDS = 86400000;


    /**
     * 默认值
     */
    public static final String DEFAULT_VALUE = "unknown";

    /**
     * 维度信息表中指定全部列值
     */
    public static final String VALUE_OF_ALL = "all";

    /**
     * 成功计数器的tag
     */
    public static final String SUCCESS_COUNTER_TAG = "SUCCESS_COUNTER";
    /**
     * 失败计数器的tag
     */
    public static final String FAIL_COUNTER_TAG = "FAIL_COUNTER";
    /**
     * 输入路径
     */
    public static final String LOG_INPUT_PATH_KEY = "log_input_path_key";
    /**
     * 输出路径
     */
    public static final String LOG_OUT_PATH_KEY = "log_out_path_key";
    /**
     * 日志按照日志分割符 的标准格式个数
     */
    public static final int LOG_ITEM_COUNT = 4;
    /**
     * ETL数据缓存集合的大小
     */
    public static final int CACHE_PUT_LIST_SIZE = 100;

    /**
     * Mybatis的配置文件位置
     */
    public static final String MYBATIS_CONFIG_XML_NAME = "mybatis-config.xml";
    /**
     * kpi缓存key的前缀
     */
    public static final String KPI_CACHE_KEY_PRE_TAG = "KPI_";
    /**
     * platform 缓存key的前缀
     */
    public static final String PLATFORM_CACHE_KEY_PRE_TAG = "PLATFORM_";
    /**
     * mysql的缓存配置key
     */
    public static final String MYSQL_BATCH_NUM_KEY = "mysql.batch.num";
    /**
     * 默认的MySQL缓存配置
     */
    public static final int DEFAULT_MYSQL_BATCH_NUM = 50;
    /**
     * 日志分割符
     */
    public static String LOG_SPLIT_TAG = "\\^A";
    /**
     * 运行时期参数 日期参数的分割符
     */
    public static String DATE_PARAM_SPLiT_TAG = "-d";
}
